##############
# READ ME REPLICATION FILES
#
# Rising Seas, Rising Concerns:\\ How Climate Change Vulnerability Shapes Opinions Towards Policy
# Tyler Reny, Andrew Reeves, and Dino Christenson
# for any questions please reach out to Tyler Reny at ttreny@gmail.com
# Replication file Dec 15, 2024
##############

#########
# ANALYSIS SCRIPTS
#########

All figures and tables in the script can be replicated with the following analysis scripts:

1) Main analysis: replication_survey1_forsharing.R includes all code to make Table 1 and relevant appendix tables and figures

2) Moderator analyses: replication_survey2_forsharing.R includes all code to make Figure 2 and all relevant appendix tables and figures

3) replication_figure1_map.R makes the map in Figure 1

4) replication_ns_cces_forsharing.R replicates results with Nationscape and CCES datasets

5) replication_vote_analyses_forsharing.R replicates vote data analyses

6) replication_ypccc_forsharing.R replicates YPCCC analyses


#########
# DATA
#########

datasets/mapdata.shp and other accompanying files (dbf, pro, shx): shape file data for Figure 1
datasets/clean_survey2.csv survey data for replication_survey2_forsharing.R
datasets/clean_ns_enviro_proj.dta Note that NS data fips codes are restricted so we have substituted the FIPS code for a random identifier.
datasets/cces2019.dta for CCES replication
datasets/dist_matrix.csv 
datasets/ca_prop_23.csv
datasets/wa_723.csv
datasets/fl_prop_1.csv
datasets/placebo_props.csv
datasets/ypccc.csv


#########
# PACKAGE VERSIONS
#########

tidyverse_2.0.0
estimatr_1.0.4
simcf_0.2.22
interflex_1.2.6
texreg_1.39.4
pathwork_1.3.0





